﻿<controls:ChildWindow x:Class="DynamicChart.UI.Dialogs.CreateDataSourceWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="500"
           Title="添加数据源信息" FontSize="14">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="75"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <TextBlock Text="名称" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Right"/>
            <TextBox Grid.Row="0" Grid.Column="1" Margin="5" Text="{Binding Path=Name,Mode=TwoWay}"/>
            <TextBlock Text="描述" Grid.Row="1" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Right"/>
            <TextBox Grid.Row="1" Grid.Column="1" Margin="5" Text="{Binding Path=Caption,Mode=TwoWay}"/>
            <TextBlock Text="程序集名称" Grid.Row="2" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Right"/>
            <TextBox Grid.Row="2" Grid.Column="1" Margin="5" Text="{Binding Path=AssemblyName,Mode=TwoWay}"/>
            <TextBlock Text="类名称" Grid.Row="3" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Right"/>
            <TextBox Grid.Row="3" Grid.Column="1" Margin="5" Text="{Binding Path=ClassName,Mode=TwoWay}"/>
        </Grid>

        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button x:Name="OKButton" Content="确定" Click="OKButton_Click" Width="75" Margin="5"/>
            <Button x:Name="CancelButton" Content="取消" Click="CancelButton_Click" Width="75" Margin="5"/>
        </StackPanel>
    </Grid>
</controls:ChildWindow>